test Framework
fun testFramework(type: TestFrameworkType, version: DependencyVersion = DependencyVersion.IntelliJPlatform)
Adds a dependency on the test-framework library or its variant, required for testing plugins.
There are multiple Test Framework variants available, which provide additional classes for testing specific modules, like: JUnit4, JUnit 5, Maven, JavaScript, Go, Java, ReSharper, etc.
The version, if absent, is determined by the IntelliJ Platform build number. If the exact version is unavailable, and the BuildFeature.USE_CLOSEST_VERSION_RESOLVING flag is set to true, the closest available version is used, found by scanning all releases in the repository.
Parameters
type
Test framework variant type.
version
Test framework library version.